/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.model;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.StringUtils;

/**
 *
 * @author ECH
 */
public class Featured extends Base implements Serializable {
    
    private String type;
    
    private String listingID;
    private String termType;
    private String city;
    
    private Date startDate;
    private Date endDate;
    
    private String strStartDate;
    private String strEndDate;
    
    private String strStartDateManila;
    private String strEndDateManila;
    
    
    //CX: display variables
    private String listingTitle;
    private Photo listingPrimaryPhoto;
    
    private String displayCity;
    private String displayTerm;
    private String displayCityURL;
    private String displayTermURL;
    
    
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getListingID() {
        return listingID;
    }

    public void setListingID(String listingID) {
        this.listingID = listingID;
    }

    public String getTermType() {
        return termType;
    }

    public void setTermType(String termType) {
        this.termType = termType;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public boolean equals(Object obj) {
        Featured f1 = (Featured) obj;
        boolean equals = false;
        if (StringUtils.equalsIgnoreCase(this.getTermType(), f1.getTermType()) &&
            StringUtils.equalsIgnoreCase(this.getCity(), f1.getCity()) && 
            StringUtils.equalsIgnoreCase(this.getListingID(), f1.getListingID()) ) {
            equals = true;
        }
        return equals;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getStrStartDate() {
        return strStartDate;
    }

    public void setStrStartDate(String strStartDate) {
        this.strStartDate = strStartDate;
    }

    public String getStrEndDate() {
        return strEndDate;
    }

    public void setStrEndDate(String strEndDate) {
        this.strEndDate = strEndDate;
    }

    public String getStrStartDateManila() {
        return strStartDateManila;
    }

    public void setStrStartDateManila(String strStartDateManila) {
        this.strStartDateManila = strStartDateManila;
    }

    public String getStrEndDateManila() {
        return strEndDateManila;
    }

    public void setStrEndDateManila(String strEndDateManila) {
        this.strEndDateManila = strEndDateManila;
    }

    public String getListingTitle() {
        return listingTitle;
    }

    public void setListingTitle(String listingTitle) {
        this.listingTitle = listingTitle;
    }

    public Photo getListingPrimaryPhoto() {
        return listingPrimaryPhoto;
    }

    public void setListingPrimaryPhoto(Photo listingPrimaryPhoto) {
        this.listingPrimaryPhoto = listingPrimaryPhoto;
    }

    public String getDisplayCity() {
        return displayCity;
    }

    public void setDisplayCity(String displayCity) {
        this.displayCity = displayCity;
    }

    public String getDisplayTerm() {
        return displayTerm;
    }

    public void setDisplayTerm(String displayTerm) {
        this.displayTerm = displayTerm;
    }

    public String getDisplayCityURL() {
        return displayCityURL;
    }

    public void setDisplayCityURL(String displayCityURL) {
        this.displayCityURL = displayCityURL;
    }

    public String getDisplayTermURL() {
        return displayTermURL;
    }

    public void setDisplayTermURL(String displayTermURL) {
        this.displayTermURL = displayTermURL;
    }
    
    
}
